package com.hongyi.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * @Author: hongyi
 * @CreateTime: 2024-10-17
 */





@Data
@AllArgsConstructor
@NoArgsConstructor
public class Site implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    /*主键ID*/
    public Long id;
    @JsonSerialize(using = ToStringSerializer.class)

    /*父级id*/
    public Long pid;
    /*当前层级名称*/
    public String pname;
    /*当前时间*/
    public String currentName;
    /*创建时间*/
    public Date createdTime;
    /*更新时间*/
    public Date updatedTime;
    /*是否删除*/
    public Integer isDeleted;
}

